package design.templateMethod.helingang.imlClass;

import design.templateMethod.helingang.MaintenanceHandler;
import design.templateMethod.helingang.abClass.Maintenance;

import java.util.concurrent.Callable;

/**
 * @program: LearningDemo
 * @description: 传统的保养方式
 * @author: Lenny
 * @create: 2019-08-19 22:06
 **/
public class TraditionalMaintenance extends Maintenance implements Callable<Integer> {
    private MaintenanceHandler handler;
    @Override
    public void check() {
        System.out.println("Traditional 检查");
    }

    @Override
    public void wash() {
        System.out.println("Traditional 洗车");
    }

    @Override
    public void setNextHandler(MaintenanceHandler handler) {
          this.handler=handler;
    }

    @Override
    public Integer call() throws Exception {
        return 111;
    }
}
